home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / selectv1.tar / selectv1 / PORTING < prev    next >
Text File  |  1993-09-04  |  1KB  |  39 lines

  1. PORTING: selectnews v1.0
  2. LAST REVISION: August 12, 1993
  3. ------------------------------
  4.  
  5. selectnews ought to compile right out of the box for all UNIX systems
  6. containing the curses or ncurses library.
  7.  
  8. Unfortunately, the BSD version of curses does not support the
  9. procedure 'keypad()', which allows the user to use the extended
  10. terminal keyboard, such as arrow keys.  The ncurses library is
  11. designed to take the places of the BSD curses library, so it is
  12. compatible with the Berkeley version of curses.
  13.  
  14. If compiling with the curses library, selectnews assumes the BSD
  15. curses library, and comments out the 'keypad()' command.  If you are
  16. using a Berkeley-compatible version of UNIX, and you have 'keypad()'
  17. in the curses library, you can uncomment the 'keypad()' command and
  18. thus use the extended keyboard.
  19.  
  20. Look for the following lines in the file screen.c:
  21.  
  22.    #ifdef NCURSES
  23.    keypad(stdscr,TRUE);
  24.    #endif
  25.  
  26. If you are using the Berkeley curses library, you can remove the
  27. 'ifdef' and 'endif' lines so it simply reads:
  28.  
  29.    keypad(stdscr,TRUE);
  30.  
  31. This will allow you to use the extended keyboard.
  32.  
  33. selectnews has been compiled on Linux, Ultrix, and Sun OS.  I see no
  34. reason why it should not compile on all versions of UNIX.
  35.  
  36. ---
  37. Eugene Kim
  38. eekim@husc.harvard.edu
  39.